Plot

plot and splot are the primary commands of the program. They plot functions and data in many, many ways. plot is used to plot 2-d functions and data, while splot plots 3-d surfaces and data.

Syntax:

        plot {ranges}  <function> {title} {style}
                    {, <function> {title} {style}...}

        splot {ranges}  <function> {title} {style}
                     {, <function> {title} {style}...}

where <function> is either a mathematical expression, the name of a data file enclosed in quotes, or a pair (plot) or triple (splot) of mathematical expressions in the case of parametric functions. User-defined functions and variables may also be defined here.

plot and splot commands can be as simple as

        plot sin(x)

and

        splot x * y

or as complex as (!)

        plot [t=1:10] [-pi:pi*2] tan(t),"data.1" with lines,t**2 with points


Subsections